package consts

import (
	"gamesdk/wanyu/server/protogo/public"
)

//ConfigType 配置类型常用定义
type ConfigType int32

const (
	// Config Default Suffix name
	CDSN = ".cfg"
	// 服务器配置
	ConfigServer = 1
	// player数据配置
	ConfigPlayer = 2
	//栈buff长度
	LenStackBuf = 4096
)

// const MONEY_ZOOM = 1000000 //金额缩放倍数 old
const MONEY_ZOOM = 100 //金额缩放倍数

var GamesName = map[string]public.GameType{
	"brnn":  public.GameType_BRNN,
	"ddz":   public.GameType_DDZ,
	"dzpk":  public.GameType_DZPK,
	"ebg":   public.GameType_EBG,
	"ermj":  public.GameType_ERMJ,
	"hbsl":  public.GameType_HBSL,
	"hhdz":  public.GameType_HHDZ,
	"jdnn":  public.GameType_JDNN,
	"lhd":   public.GameType_LHD,
	"pdk":   public.GameType_PDK,
	"qznn":  public.GameType_QZNN,
	"shby":  public.GameType_SHBY,
	"zjh":   public.GameType_ZJH,
	"dfdc":  public.GameType_DFDC,
	"xzdd":  public.GameType_XZDD,
	"xlch":  public.GameType_XLCH,
	"fkddz": public.GameType_FKDDZ,
	"xzmj":  public.GameType_XZMJ,
}

var GamesChName = map[public.GameType]string{
	public.GameType_BRNN: "百人牛牛",
	public.GameType_DDZ:  "斗地主",
	public.GameType_DZPK: "德州扑克",
	public.GameType_EBG:  "二八杠",
	public.GameType_ERMJ: "二人麻将",
	public.GameType_HBSL: "红包扫雷",
	public.GameType_HHDZ: "红黑大战",
	public.GameType_JDNN: "经典牛牛",
	public.GameType_LHD:  "龙虎斗",
	public.GameType_PDK:  "跑得快",
	public.GameType_QZNN: "抢庄牛牛",
	public.GameType_SHBY: "深海捕鱼",
	public.GameType_ZJH:  "炸金花",
	public.GameType_DFDC: "多福多财",
	public.GameType_XZDD: "血战到底",
	public.GameType_XLCH: "血流成河",
	public.GameType_XZMJ: "血战麻将",
}

const (
	// 定义服务名
	PlayerSrvName   = "wind.platform.srv.player"
	AgentSrvName    = "wind.platform.srv.agent"
	RoomSrvName     = "wind.platform.srv.room"
	PaySrvName      = "wind.platform.srv.pay"
	LogSrvName      = "wind.platform.srv.logger"
	GameAPIName     = "wind.platform.api.game"
	AuthAPIName     = "wind.platform.api.auth"
	LobbyAPIName    = "wind.platform.api.lobby"
	PayAPIName      = "wind.platform.api.pay"
	RechargeSrvName = "mammon.pay"
)

const (
	//SERVER 服务器
	Server = 0x1
	//CLIENT 客服端
	Client = 0x2
)

const (
	// 服务类
	GatewayHttp = 0x01 //gateway(http)
	GatewayWs   = 0x02 //gateway(websocket)
	AuthApi     = 0x03 //authAPI
	PayApi      = 0x04 //payAPI
	LobbyApi    = 0x05 //lobbyAPI
	ChatApi     = 0x06 //chatAPI
	GameApi     = 0x07 //gameAPI
	AgentSrv    = 0x08 //agentSrv
	PlayerSrv   = 0x09 //playerSrv
	RoomSrv     = 0x0A //roomSrv
	PaySrv      = 0x0B //paySrv
	MachineSrv  = 0x0C //machineSrv
)
